import request from '@/utils/request'

// 查询题目试题列表
export function listClassQuestions(query) {
  return request({
    url: '/exa/classQuestions/list',
    method: 'get',
    params: query
  })
}

// 查询题目试题详细
export function getClassQuestions(id) {
  return request({
    url: '/exa/classQuestions/' + id,
    method: 'get'
  })
}

// 新增题目试题
export function addClassQuestions(data) {
  return request({
    url: '/exa/classQuestions',
    method: 'post',
    data: data
  })
}

// 修改题目试题
export function updateClassQuestions(data) {
  return request({
    url: '/exa/classQuestions',
    method: 'put',
    data: data
  })
}

// 删除题目试题
export function delClassQuestions(id) {
  return request({
    url: '/exa/classQuestions/' + id,
    method: 'delete'
  })
}
